import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'android_to_desktop_method_channel.dart';

abstract class AndroidToDesktopPlatform extends PlatformInterface {
  /// Constructs a AndroidToDesktopPlatform.
  AndroidToDesktopPlatform() : super(token: _token);

  static final Object _token = Object();

  static AndroidToDesktopPlatform _instance = MethodChannelAndroidToDesktop();

  /// The default instance of [AndroidToDesktopPlatform] to use.
  ///
  /// Defaults to [MethodChannelAndroidToDesktop].
  static AndroidToDesktopPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [AndroidToDesktopPlatform] when
  /// they register themselves.
  static set instance(AndroidToDesktopPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<bool?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }
}
